/**
 * 
 */
package com.java.test.util;

/**
 * @author 返回数据
 *
 */
public class JsonResult {

	
	// 0成功
	private int code=20000;

	private String message="请求成功";

	private Object data=null;

	
	public JsonResult(int code,String message) {
		super();
		this.code = code;
		this.message = message;
		
	}
	public JsonResult() {
		super();
		this.code = HttpErrorCode.REQUESTSUCCESS.getCode();
		this.message = HttpErrorCode.REQUESTSUCCESS.getContent();	
	}
	
	public JsonResult(int code, String msg, String data) {
		super();
		this.code = code;
		this.message = msg;
		this.data = data;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}


	

}
